FROM java:8-jre
MAINTAINER potian <potian.kang@foxmail.com>

ARG ver=##CURRENT_VERSION##
ARG app=shop-movie
ARG JAR_FILE=${app}-${ver}.jar

ENTRYPOINT ["/usr/bin/java", "-jar", "/usr/share/myservice/shop-movie.jar"]

# Add Maven dependencies (not shaded into the artifact; Docker-cached)
# ADD target/lib           /usr/share/myservice/lib
# Add the service itself
ADD ${JAR_FILE} /usr/share/myservice/${app}.jar